package com.app.coffeephilosophy.activity;

import com.app.coffeephilosophy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

public class CoffeeLogoActivity extends Activity {
    private ImageView imagelogin;
	 
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN); // 设置全屏模式
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.coffeelogo);
		
		imagelogin=(ImageView)findViewById(R.id.coffeelogo);
		AlphaAnimation alpanimation=new AlphaAnimation(0.1f,1.0f);
		alpanimation.setDuration(3000);
		imagelogin.setAnimation(alpanimation);
		alpanimation.setAnimationListener(new AnimationListener(){

			 
			public void onAnimationEnd(Animation animation) {
				Intent intent=new Intent(CoffeeLogoActivity.this,HandPageViewActivity.class);
				startActivity(intent);
				finish();
				
			}

			 
			public void onAnimationRepeat(Animation animation) {
			
			}

			 
			public void onAnimationStart(Animation animation) {
				
				
			}});
		
		
	}
	
}
